package pack1;

import java.util.concurrent.TimeUnit;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.Select;

public class sprg10 {public static void main(String[] args) {
	WebDriver driver= new FirefoxDriver();
	driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);
	driver.get("file:///C:/Users/anand/Desktop/tst.html");
WebElement cSelect= driver.findElement(By.id("dl1"))	;
Select select= new Select(cSelect);
select.selectByIndex(1);
select.selectByValue("t");


}

}
